/* ************************************************************ */
/*	Vietcong Dedicated Server System  Startup Launcher	*/
/*			by SodoMyzer <{(ITA)}>			*/
/* ************************************************************ */

Hi.
I wrote this little program in c # because:
1-I was tired of starting the server on mini pc via remote desktop
2-more time at home because I work there because of the covid
3-the will to study a bit of c #

when windows starts, it will start the dedicated server and click on the "Start" button automatically.

/*  *********************  INSTRUCTIONS  *********************  */
1-At first run it presents the path of the file itself.
2-You must click on the SELECT VIETCONG DEDICATED SERVER EXECUTABLE button and select the vcded.exe file.
There is no control over the file name and path, so in theory it could launch any other executable.
3-You then need to click on the ADD TO WINDOWS STARTUP button. This will create a quick start line to the registry, with AUTO argument, 
so the program understands that it was started from windows and not manually.

4-The REMOVE FROM WINDOWS STARTUP button will become selectable. The two buttons are mutually clickable.
If the registry entry has been entered and the executable is moved or renamed, or
1) install the key
2) I uninstall Vietcong and this program and I forget about it for 20 years
3) reinstall it
The entry will be found again by the program

In case this exe is moved or renamed it will advised , and you will need to remove and re-add to the registry.

I was unable to handle the START button directly with the windows API, so I calculated the position of the window and in percentage the position of the button, simulating a mouse click.

I have tested it successfully with Vietcong Starter and following resolutions:
-1920x1080
-1360x768
-1024x768


I was not 
Enjoy!
